package com.huanong.it.xwcommon.service;

import com.huanong.it.xwcommon.entity.Admin;

import com.huanong.it.xwcommon.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "xw-admin")
public interface AdminService {
    @PostMapping("/admin/register")
    public Result<Admin> register(@RequestBody Admin admin);
    @PostMapping("/admin/login")
    public Result<Admin> login(@RequestParam("loginname")String loginname,@RequestParam("loginpwd")String loginpwd);

    //查看用户列表
    //修改用户状态

    //查看微博列表
    //修改微博状态

    //查看评论列表
    //修改评论状态


}
